#include <iostream>
#include <stdlib.h>


using namespace std;
void report_allocations();

int allocations = atexit(&report_allocations);

void report_allocations()
{
	cout << "Num alloc: " << allocations << endl;
}
